package com.swt.gap.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
@ToString
@ApiModel(value = "用户表" )
public class SysUser {

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @ApiModelProperty(value = "创建者")
    private Integer createdBy;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDeleted;


    @ApiModelProperty(value = "所属单位id")
    private Integer departmentId;

    @ApiModelProperty(value = "是否启用")
    private Boolean activated;
}